﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="static_pub_list.aspx.cs" Inherits="admin_manager_static_pub_list" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>静态页面发布管理</title>
    <meta http-equiv="pragma" content="no-cache" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="expires" content="0" />
	<link href="../css/default.css" rel="stylesheet" type="text/css" />
	<script src="../js/jquery-1.4.2.min.js" type="text/javascript"></script>
	<script src="../js/jUtility.js" type="text/javascript"></script>
</head>
<body>
    <form name="form1" id="form1" method="post" runat="server">
    <input type="hidden" name="type" value="0" />
    
    <table width="100%" height="600" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" id="_listpage" runat="server">
  <tr>
    <td height="414" align="left" valign="top" class="rightbg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="2" bgcolor="#A49B81"></td>
            </tr>
            <tr>
              <td height="25" background="../images/position_bg.gif" bgcolor="#EEF6FE" class="subnav" style="background-repeat:repeat-y; background-position:left; padding-left:6px; padding-top:3px;">
              <asp:Label ID="cnavi" runat="server" />
              </td>
            </tr>
            <tr>
              <td height="1" bgcolor="#B0C9E8"></td>
            </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td height="16"></td>
      </tr>
      <tr>
        <td height="21"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="10">&nbsp;</td>
              <td width="100" align="left"><table width="80" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="3"><img src="../images/btn_blue_left.gif" width="3" height="21" /></td>
                    <td width="26" align="center" background="../images/btn_blue_center.jpg"><img src="../images/icon_add.gif" width="16" height="14" /></td>
                    <td align="left" background="../images/btn_blue_center.jpg" class="subnav"><asp:LinkButton ID="All" Text="全站生成" OnClick="All_Btn_click" runat="server" OnClientClick="return onhtml()"></asp:LinkButton></td>
                    <td width="3"><img src="../images/btn_blue_right.jpg" width="3" height="21" /></td>
                    
                    
                  </tr>
              </table></td>             
             
              <td width="100" align="left"><table width="80" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="3"><img src="../images/btn_blue_left.gif" width="3" height="21" /></td>
                    <td width="26" align="center" background="../images/btn_blue_center.jpg"><img src="../images/icon_add.gif" width="16" height="14" /></td>
                    <td align="left" background="../images/btn_blue_center.jpg" class="subnav"><asp:LinkButton ID="All_index" Text="首页生成" OnClick="All_Index_Btn_click" runat="server" OnClientClick="return onhtml()"></asp:LinkButton></td>
                    <td width="3"><img src="../images/btn_blue_right.jpg" width="3" height="21" /></td>
                    
                    
                  </tr>
              </table></td>
              <td width="100" align="left"><table width="80" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="3"><img src="../images/btn_blue_left.gif" width="3" height="21" /></td>
                    <td width="26" align="center" background="../images/btn_blue_center.jpg"><img src="../images/icon_add.gif" width="16" height="14" /></td>
                    <td align="left" background="../images/btn_blue_center.jpg" class="subnav"><nobr><asp:LinkButton ID="lbCreateIndex" Text="创建全文索引" OnClick="lbCreateIndex_click" runat="server" OnClientClick="return onhtml()"></asp:LinkButton></nobr></td>
                    <td width="3"><img src="../images/btn_blue_right.jpg" width="3" height="21" /></td>
                    
                    
                  </tr>
              </table></td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
        </table></td>
        
      </tr>
      <tr>
        <td height="16"></td>
      </tr>
      <tr>
        <td align="left" valign="top" style="padding-left:10px;">
	        <table width="98%" border="1" cellspacing="0" cellpadding="0" bordercolordark="#ffffff" bordercolorlight="#2583BC">
	          <tr>
	            <td valign="top">
	            
	            <asp:GridView ID="GridView1" runat="server" Width="100%" border="0" CellPadding="0" CellSpacing="0" ShowFooter="false"  AutoGenerateColumns="False" >
	                                            <Columns>
	                                                <asp:BoundField  HeaderText="栏目ID" DataField="Classid" ItemStyle-CssClass="greytd"/>
	                                                <asp:BoundField DataField="Classname" HeaderText="栏目名称" ItemStyle-CssClass="greytd" ItemStyle-Width="50%"/>
	                                                
	                                                <asp:TemplateField HeaderText="操作" >
	                                                    <HeaderTemplate>
                                                            操作
                                                        </HeaderTemplate>
	                                                    <ItemTemplate>
                                                             <asp:LinkButton Visible='<%#Eval("Class_is_static").ToString() == "1" ? true : false%>' runat="server" ID="index" OnClick="Index_Btn_click" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "Classid") %>' OnClientClick="return onhtml()">首页生成</asp:LinkButton>
                                                              &nbsp;&nbsp;&nbsp;&nbsp;
                                                              <asp:LinkButton Visible='<%#Eval("Isstaticpub").ToString() == "1" ? true : false%>' runat="server" ID="LinkButton1" OnClick="And_Content_Btn_click" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "Classid") %>' OnClientClick="return onhtml()">本栏目内容生成</asp:LinkButton>
                                                             &nbsp;&nbsp;&nbsp;&nbsp;
                                                             <asp:LinkButton Visible='<%#Eval("Isstaticpub").ToString() == "1" ? true : false%>' runat="server" ID="content" OnClick="Content_Btn_click" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "Classid") %>' OnClientClick="return onhtml()">所有子栏目内容生成</asp:LinkButton>
                                                             &nbsp;&nbsp;&nbsp;&nbsp;
                                                             <a href="static_pub_list.aspx?columnid=<%#Eval("Classid").ToString() %>&layerid=<%=Layerid %>&webid=<%=Request.Params["webid"] %>&langID=<%=Request.Params["langid"] %>">子栏目</a>
                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Right" />
                                                        <ItemStyle CssClass="greytd" />
	                                                </asp:TemplateField>
	                                            </Columns>
	                                            <PagerTemplate>
	                                            </PagerTemplate>
	                                        </asp:GridView>
            
           		</td>
         		</tr>
              </table>
        </td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table></td>
  </tr>
</table>
</form> 

<iframe id="wait2" runat="server" name="wait2" style="display:none;" width=100% height="600" src="../images/wait.gif" FRAMEBORDER='0' align='middle' bgcolor='#FFFFFF'></iframe>
<script type="text/javascript">

    function onhtml() {
        document.all.wait2.style.display = "inline";
        document.all._listpage.style.display = "none";
        return true;
    }   
</script>
</body>
</html>
